package com.lyj.model;

import com.lyj.utils.DateUtil;

/**
* 
* @author 李艺江
* @version 创建时间：2019年5月6日 下午10:10:58
*/

public class Message {
	
	private Integer id;
	private User user;
	private String title;
	private String content;
	private Long time;
	
	private String timeView;
	
	public Message() {
	}

	public Message(User user, String title, String content, Long time) {
		this.user = user;
		this.title = title;
		this.content = content;
		this.time = time;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
		this.timeView = DateUtil.toLongDate(time);
	}

	public String getTimeView() {
		return timeView;
	}
	
}
